package com.s666.demo.model.converter;

import com.s666.demo.dao.entity.Ziku;
import com.s666.demo.model.dto.ZikuDTO;

/**
 * @author lijin
 */
public class ZikuConverter{

    public static Ziku convert(ZikuDTO zikuDTO){
        Ziku ziku =new Ziku();
        ziku.setPy(zikuDTO.getPy());
        ziku.setPinyin(zikuDTO.getPinyin());
        ziku.setType(zikuDTO.getType());
        return ziku;
    }
}
